package com.alon.spring01.controller;

import javax.servlet.http.HttpSession;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: spring01
 * @description: chat控制器
 * @author: yulongguang
 * @create: 2019-04-16 23:03
 **/
@RequestMapping("/chat")
@Slf4j
@Controller
public class ChatController {

    @GetMapping("/startChat")
    public String startChat(HttpSession session){
        session.setAttribute("u","11313");
        return "chat2";
    }
}
